package com.qjs.weixin.customer.service.impl;


import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import com.qjs.dao.BaseDao;
import com.qjs.service.impl.baseServiceImpl;
import com.qjs.weixin.customer.dao.UserDao;
import com.qjs.weixin.customer.model.User;
import com.qjs.weixin.customer.service.IUserService;

/**
 * Hello world!
 *
 */
@Service
public class UserService<T> extends baseServiceImpl<T> implements IUserService<T>{
	
	@Resource
	private UserDao<T> UserDao;

	@Override
	public User getUser(String id)throws Exception{
		Long i=Long.valueOf(id);
		return (User) UserDao.getById(i);
	}

	@Override
	public BaseDao<T> getBaseDao() {
		return UserDao;
	}
  
}
